fix(deps): update dependency @astrojs/netlify to v7 [security]#113
Open
renovate[bot] wants to merge 1 commit into
Open
fix(deps): update dependency @astrojs/netlify to v7 [security]#113renovate[bot] wants to merge 1 commit into
renovate[bot] wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^5.5.3→^7.0.0@astrojs/netlify broadens Astro image.remotePatterns in Netlify Image CDN config
CVE-2026-54300 / GHSA-529g-xq4f-cw38
More information
Details
Summary
@astrojs/netlifyconverts Astroimage.remotePatternsinto Netlify Image CDNimages.remote_imagesregular expressions with broader semantics than Astro's canonical matcher. A single wildcard hostname such as*.example.comis converted to an optional subdomain regex, so the apex host matches. A single wildcard pathname such as/ok/*is converted without end anchoring, so deeper paths match by prefix.Technical details
The Netlify adapter generates regex strings for Netlify Image CDN from
image.remotePatterns. For*.example.com, it emits([a-z0-9-]+\\.)?example\\.com, which makes the subdomain optional. Astro's canonical helper requires exactly one subdomain and rejects the apex host.For
/ok/*, the adapter emits a segment regex but does not anchor the end of the URL. Netlify's Image CDN implementation treatsimages.remote_imagesentries as JavaScript regular expressions and calls.test(sourceImageUrl.href), so a URL such as/ok/a/b.svgmatches the/ok/aprefix even though Astro's helper rejects it.The latest npm package
@astrojs/netlify@7.0.10contains this conversion logic, and a minimal Astro build writes the broadened patterns into.netlify/v1/config.json.Reproduction
astro@6.3.8and@astrojs/netlify@7.0.10.remotePatterns: [{ protocol: 'http', hostname: '*.localhost', pathname: '/ok/*' }]..netlify/v1/config.jsoncontainshttp://([a-z0-9-]+\\.)?localhost(:[0-9]+)?(\\/ok/[^/?#]+)/?([?][^#]*)?.127.0.0.1:9001./.netlify/images?url=http%3A%2F%2Flocalhost%3A9001%2Fok%2Fa.svg&w=100. Astro's helper rejects the apexlocalhostfor*.localhost, but Netlify Image CDN accepts it and fetches the canary./.netlify/images?url=http%3A%2F%2Flocalhost%3A9001%2Fnope%2Fa.svg&w=100. This returns403 Forbidden: Remote image URL not allowedand does not hit the canary./.netlify/images?url=http%3A%2F%2Flocalhost%3A9001%2Fok%2Fa%2Fb.svg&w=100. Astro's/ok/*helper rejects this deeper path, but Netlify Image CDN accepts it and fetches the canary.Impact
Any Astro app deployed with
@astrojs/netlifyand a restrictiveimage.remotePatternsconfig can expose a wider image-fetch boundary than intended. Public requests to the Netlify Image CDN endpoint can fetch URLs that Astro's own matcher would reject, including apex hosts for*.hostpatterns and deeper paths for/path/*patterns. The practical impact depends on what the application intended to isolate behind the remote image allowlist, but it can disclose image-like resources from unintended hosts or paths behind the same configured remote origin family.Remediation
Generate regexes that exactly match Astro's canonical
matchHostnameandmatchPathnamesemantics, and anchor the full URL match before writingimages.remote_images. In particular,*.example.comshould require exactly one subdomain and should not matchexample.com, and/ok/*should match exactly one additional path segment and should not match/ok/a/b.Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
withastro/astro (@astrojs/netlify)
v7.0.13Compare Source
Patch Changes
#17018
1310277Thanks @matthewp! - HardensremotePatternsregex generation to match canonical wildcard semantics more strictlyUpdated dependencies []:
v7.0.12Compare Source
Patch Changes
#16693
9e6edc2Thanks @ArmandPhilippot! - Fixes a link in the documentation specifying where to open an issue for the adapter.Updated dependencies []:
v7.0.11Compare Source
Patch Changes
f732f3c]:v7.0.10Compare Source
Patch Changes
#16661
03b8f7fThanks @ocavue! - Updatestypescriptto v6. No changes are needed from users.Updated dependencies []:
v7.0.9Compare Source
Patch Changes
#16716
04fdbb2Thanks @delucis! - Updates internal dependenciesUpdated dependencies [
d365c97]:v7.0.8Compare Source
Patch Changes
99464ed,f3485c3]:v7.0.7Compare Source
Patch Changes
#16027
c62516bThanks @fkatsuhiro! - Fixes a bug where remote image dimensions were not validated during static builds on Netlify.Updated dependencies []:
v7.0.6Compare Source
Patch Changes
814406d]:v7.0.5Compare Source
Patch Changes
#16063
ccb6a9cThanks @matthewp! - Fixes server islands returning 404 in production when usingoutput: 'static'(the default)Updated dependencies []:
v7.0.4Compare Source
Patch Changes
3b8d473]:v7.0.3Compare Source
Patch Changes
#15934
6f8f0bcThanks @ematipico! - Updates the AstropeerDependencies#astroto be6.0.0.Updated dependencies []:
v7.0.2Patch Changes
#15868
bb2b8f5Thanks @ematipico! - Fixes an issue where the adapter would cause a series of warnings during the build.Updated dependencies []:
v7.0.1Patch Changes
e20474b]:v7.0.0Compare Source
Major Changes
ecb0b98Thanks @florian-lefebvre! - Astro v6.0 upgrades to Vite v7.0 as the development server and production bundler - (v6 upgrade guidance)Minor Changes
#15258
d339a18Thanks @ematipico! - Stabilizes the adapter featureexperimentalStatiHeaders. If you were using this feature in any of the supported adapters, you'll need to change the name of the flag:export default defineConfig({ adapter: netlify({ - experimentalStaticHeaders: true + staticHeaders: true }) })#15809
94b4a46Thanks @Princesseuh! - Adds support for thefitoption to the image service#15495
5b99e90Thanks @leekeh! - Adds newmiddlewareModeadapter feature and deprecatesedgeMiddlewareoptionThe
edgeMiddlewareoption is now deprecated and will be removed in a future major release, so users should transition to using the newmiddlewareModefeature as soon as possible.export default defineConfig({ adapter: netlify({ - edgeMiddleware: true + middlewareMode: 'edge' }) })#15006
f361730Thanks @florian-lefebvre! - Adds new session driver object shapeFor greater flexibility and improved consistency with other Astro code, session drivers are now specified as an object:
Specifying the session driver as a string has been deprecated, but will continue to work until this feature is removed completely in a future major version. The object shape is the current recommended and documented way to configure a session driver.
#15413
736216bThanks @florian-lefebvre! - Updates the implementation to use the new Adapter API#14946
95c40f7Thanks @ematipico! - Removes theexperimental.cspflag and replaces it with a new configuration optionsecurity.csp- (v6 upgrade guidance)Patch Changes
#15187
bbb5811Thanks @matthewp! - Update to Astro 6 beta#15781
2de969dThanks @ematipico! - Adds a newclientAddressoption to thecreateContext()functionProviding this value gives adapter and middleware authors explicit control over the client IP address. When not provided, accessing
clientAddressthrows an error consistent with other contexts where it is not set by the adapter.Additionally, both of the official Netlify and Vercel adapters have been updated to provide this information in their edge middleware.
#15665
52a7efdThanks @matthewp! - Fixes builds that were failing with "Entry module cannot be external" error when using the Netlify adapterThis error was preventing sites from building after recent internal changes. Your builds should now work as expected without any changes to your code.
#15679
19ba822Thanks @matthewp! - Fixes server-rendered routes returning 404 errorsA configuration error in the build output prevented Netlify from correctly routing requests to server-rendered pages, causing them to return 404 errors. This fix ensures that all server routes are properly handled by the Netlify SSR function.
#15809
94b4a46Thanks @Princesseuh! - Fixes the image CDN being used in development despite being disabled in certain cases#15460
ee7e53fThanks @florian-lefebvre! - Updates to use the new Adapter API#15450
50c9129Thanks @florian-lefebvre! - Fixes a case wherebuild.serverEntrywould not be respected when using the new Adapter API#15461
9f21b24Thanks @florian-lefebvre! - Updates to new Adapter API introduced in v6Updated dependencies [
4ebc1e3,4e7f3e8,a164c77,cf6ea6b,a18d727,240c317,745e632]:v6.6.5Compare Source
Patch Changes
c2cd371]:v6.6.4Compare Source
Patch Changes
#15199
d8e64efThanks @ArmandPhilippot! - Fixes the links to Astro Docs so that they match the current docs structure.Updated dependencies []:
v6.6.3Compare Source
Patch Changes
#14807
c17767aThanks @jmgala! - Fixes a case where disabling the local image CDN wasn't possibleUpdated dependencies []:
v6.6.2Compare Source
Patch Changes
#14716
0419985Thanks @serhalp! - Upgrades the@netlify/functionsdependency to v5. This removes 82 MB and 310 dependencies from the dependency treeUpdated dependencies []:
v6.6.1Compare Source
Patch Changes
9e9c528,0f75f6b]:v6.6.0Compare Source
Minor Changes
#14543
9b3241dThanks @matthewp! - Enables Netlify's skew protection feature for Astro sites deployed on Netlify. Skew protection ensures that your site's client and server versions stay synchronized during deployments, preventing issues where users might load assets from a newer deployment while the server is still running the older version.When you deploy to Netlify, the deployment ID is now automatically included in both asset requests and API calls, allowing Netlify to serve the correct version to every user. These are set for built-in features (Actions, View Transitions, Server Islands, Prefetch). If you are making your own fetch requests to your site, you can include the header manually using the
DEPLOY_IDenvironment variable:Patch Changes
v6.5.13Compare Source
Patch Changes
#14536
9261996Thanks @florian-lefebvre! - Fixes a bug that caused too many files to be bundled in SSRUpdated dependencies []:
v6.5.12Compare Source
Patch Changes
#14473
d9634d3Thanks @florian-lefebvre! - Fixes a bug that caused too many files to be bundled in SSRUpdated dependencies [
b8ca69b]:v6.5.11Compare Source
Patch Changes
1e2499e]:v6.5.10Compare Source
Patch Changes
#14326
c24a8f4Thanks @jsparkdev! - Updatesviteversion to fix CVEUpdated dependencies []:
v6.5.9Compare Source
Patch Changes
#14269
4823c42Thanks @florian-lefebvre! - Updatescontext.netlifyto implement all its propertiesUpdated dependencies []:
v6.5.8Compare Source
Patch Changes
#14240
77b18fbThanks @delucis! - Increases the minimum supported version of Astro to 5.7.0Updated dependencies []:
v6.5.7Compare Source
Patch Changes
4d16de7]:v6.5.6Compare Source
Patch Changes
1e1cef0Thanks @ematipico! - Fixes a bug where the adapter would cause a runtime error when callingastro buildin CI environments.v6.5.5Compare Source
Patch Changes
0567fb7]:v6.5.4Compare Source
Patch Changes
f4e8889]:v6.5.3Compare Source
Patch Changes
#14120
798b5faThanks @ascorbic! - Adds mock feature flags in devUpdated dependencies []:
v6.5.2Compare Source
Patch Changes
#14103
69d6871Thanks @ascorbic! - Upgrades Netlify Vite plugin to fix error in edge functions.Updated dependencies []:
v6.5.1Compare Source
Patch Changes
#14536
9261996Thanks @florian-lefebvre! - Fixes a bug that caused too many files to be bundled in SSRUpdated dependencies []:
v6.5.0Compare Source
Minor Changes
faa0effThanks @eduardoboucas! - Updates the adapter to use Netlify's Vite plugin in development.This is an implementation update that does not require any change to your project code, but means that
astro devwill run with an environment closer to a production deploy on Netlify. This brings several benefits you'll now notice working in dev mode!For example, your project running in development mode will now use local versions of the Netlify Image CDN for images, and a local Blobs server for sessions. It will also populate your environment with the variables from your linked Netlify site.
While not required for fully static, prerendered web sites, you may still wish to add this for the additional benefits of now working in a dev environment closer to your Netlify production deploy, as well as to take advantage of Netlify-exclusive features such as the Netlify Image CDN.
Patch Changes
v6.4.1Compare Source
Patch Changes
db8f8beThanks @ematipico! - Fixes the internal implementation of the new featureexperimentalStaticHeaders, where dynamic routeswere mapped to use always the same header.
v6.4.0Compare Source
Minor Changes
#13952
de82ef2Thanks @ematipico! - Adds support for the experimental static headers Astro feature.When the feature is enabled via option
experimentalStaticHeaders, and experimental Content Security Policy is enabled, the adapter will generateResponseheaders for static pages, which allows support for CSP directives that are not supported inside a<meta>tag (e.g.frame-ancestors).Patch Changes
de82ef2,de82ef2,de82ef2]:v6.3.4Compare Source
Patch Changes
#13799
7036b05Thanks @Lofty-Brambles! - Fixes an issue where the adapter didn't take into consideration theoutDirconfiguration.#13830
9371a67Thanks @Lofty-Brambles! - Fixes an issue with SVGs not rendering with image-cdn enabled, due to invalid source path parsing.Updated dependencies []:
v6.3.3Compare Source
Patch Changes
#13792
7910feaThanks @alexeyzimarev! - Unify imported images detection across adaptersUpdated dependencies []:
v6.3.2Compare Source
Patch Changes
#13731
c3e80c2Thanks @jsparkdev! - update vite to latest version for fixing CVEUpdated dependencies []:
v6.3.1Compare Source
Patch Changes
#13591
5dd2d3fThanks @florian-lefebvre! - Removes unused codeUpdated dependencies [
5dd2d3f]:v6.3.0Compare Source
Minor Changes
#13527
2fd6a6bThanks @ascorbic! - The experimental session API introduced in Astro 5.1 is now stable and ready for production use.Sessions are used to store user state between requests for on-demand rendered pages. You can use them to store user data, such as authentication tokens, shopping cart contents, or any other data that needs to persist across requests:
v6.2.6Compare Source
Patch Changes
#13596
3752519Thanks @jsparkdev! - update vite to latest version to fix CVE#13547
360cb91Thanks @jsparkdev! - Updates vite to the latest versionUpdated dependencies []:
v6.2.5Compare Source
Patch Changes
#13526
ff9d69eThanks @jsparkdev! - updateviteto the latest versionUpdated dependencies []:
v6.2.4Compare Source
Patch Changes
#13505
a98ae5bThanks @ematipico! - Updates the dependencyviteto the latest.Updated dependencies []:
v6.2.3Compare Source
Patch Changes
042d1de]:v6.2.2Compare Source
Patch Changes
#13323
80926faThanks @ematipico! - Updatesesbuildandviteto the latest to avoid false positives audits warnings caused byesbuild.Updated dependencies [
1e11f5e]:v6.2.1Compare Source
Patch Changes
#13299
2e1321eThanks @bluwy! - Usestinyglobbyfor globbing filesUpdated dependencies []:
v6.2.0Minor Changes
#13194
1b5037bThanks @dfdez! - AddsincludedFilesandexcludedFilesconfiguration options to customize SSR function bundle contents.The
includeFilesproperty allows you to explicitly specify additional files that should be bundled with your function. This is useful for files that aren't automatically detected as dependencies, such as:fsoperationsSimilarly, you can use the
excludeFilesproperty to prevent specific files from being bundled that would otherwise be included. This is helpful for:See the Netlify adapter documentation for detailed usage instructions and examples.
#13145
8d4e566Thanks @ascorbic! - Automatically configures Netlify Blobs storage when experimental session enabledIf the
experimental.sessionflag is enabled when using the Netlify adapter, Astro will automatically configure the session storage using the Netlify Blobs driver. You can still manually configure the session storage if you need to use a different driver or want to customize the session storage configuration.See the experimental session docs for more information on configuring session storage.
Patch Changes
v6.1.0Minor Changes
4b5cd22Thanks @florian-lefebvre! - Stabilizesastro:envsecrets supportPatch Changes
#454
83cedadThanks @alexanderniebuhr! - Improves Astro 5 support#501
012b31dThanks @florian-lefebvre! - Refactor of the redirects logicv6.0.1Patch Changes
#481
9d98b8aThanks @ascorbic! - Fixes an error where edge middleware would incorrectly assign locals#488
f3739beThanks @ascorbic! - Correctly pass Netlify context in edge middlewarev6.0.0Major Changes
#367
e02b54aThanks @alexanderniebuhr! - Removed support for the Squoosh image service. As the underlying librarylibsquooshis no longer maintained, and the image service sees very little usage we have decided to remove it from Astro.Our recommendation is to use the base Sharp image service, which is more powerful, faster, and more actively maintained.
If you are using this service, and cannot migrate to the base Sharp image service, a third-party extraction of the previous service is available here: https://github.com/Princesseuh/astro-image-service-squoosh
#367
e02b54aThanks @alexanderniebuhr! - Deprecates thefunctionPerRouteoptionThis option is now deprecated, and will be removed entirely in Astro v5.0. We suggest removing this option from your configuration as soon as you are able to:
import { defineConfig } from 'astro/config'; import vercel from '@​astrojs/vercel/serverless'; export default defineConfig({ // ... output: 'server', adapter: vercel({ - functionPerRoute: true, }), });#375
e7881f7Thanks @Princesseuh! - Updates internal code to works with Astro 5 changes to hybrid rendering. No changes are necessary to your project, apart from using Astro 5#397
776a266Thanks @Princesseuh! - Welcome to the Astro 5 beta! This release has no changes from the latest alpha of this package, but it does bring us one step closer to the final, stable release.Starting from this release, no breaking changes will be introduced unless absolutely necessary.
To learn how to upgrade, check out the Astro v5.0 upgrade guide in our beta docs site.
#451
f248546Thanks @ematipico! - Updates esbuild dependency to v0.24.0#392
3a49eb7Thanks @Princesseuh! - Updates internal code for Astro 5 changes. No changes is required to your project, apart from using Astro 5Minor Changes
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.